# == Schema Information
#
# Table name: order_attachments
#
#  id              :integer          not null, primary key
#  image           :string
#  order_id        :integer
#  attachment_type :integer          default(0)
#  created_at      :datetime         not null
#  updated_at      :datetime         not null
#

class OrderAttachment < ApplicationRecord
  belongs_to :order

  # mount_uploader :image, OrderUploader
  mount_base64_uploader :image, OrderUploader, file_name: -> { 'hetong' }
end
